package cn.yunhe.entity;

import lombok.Data;

import java.io.Serializable;

/**
 * 邓永凯
 * 仓库实体类表
 * stockId  仓库编号
 * stockName 仓库名称
 * number 仓库实际存放的数量
 * maxNumber 仓库最大存储量
 * intro 介绍，描述
 * state 仓库状态 （0，未满，可以存放  1 仓库已满 不可以存放）
 * typeId 仓库存放的是哪种类型的快递  外键 关联类型表
 * adminId 仓库管理员Id
  */
@Data
public class Stock implements Serializable {
    private int stockId;
    private String stockName;
    private int number;
    private int maxNumber;
    private String intro;
    private int state;
    private Type type;
    private Admin admin;

    public Stock() {
    }

    public Stock(int stockId, String stockName, int number, int maxNumber, String intro, int state, Type type) {
        this.stockId = stockId;
        this.stockName = stockName;
        this.number = number;
        this.maxNumber = maxNumber;
        this.intro = intro;
        this.state = state;
        this.type = type;
    }

    public Stock(int stockId, String stockName, int number, int maxNumber, String intro, int state, Type type, Admin admin) {
        this.stockId = stockId;
        this.stockName = stockName;
        this.number = number;
        this.maxNumber = maxNumber;
        this.intro = intro;
        this.state = state;
        this.type = type;
        this.admin = admin;
    }
}
